﻿using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Media;


namespace Zarion_Quest.Base
{

    abstract class Scene
    {
        # region Atributes

        protected Texture2D background;

        protected Song background_music;

        #endregion

        /// <summary>
        /// 
        /// </summary>
        /// <param name="texture"></param>
        public Scene(string _background, string _background_music)//TO DO nullable?
        {
            if (_background != "")
            {
                background = Game1.Self.Content.Load<Texture2D>(_background);
            }
            else
            {
                background = Game1.Self.Content.Load<Texture2D>("Content/base/Background");
            }

            if (_background_music != "")
            {
                background_music = Game1.Self.Content.Load<Song>(_background_music);
            }
            else
            {
                background_music = Game1.Self.Content.Load<Song>("Content/base/Background_Music");
            }
           
        }
        
        /// <summary>
        /// 
        /// </summary>
        /// <param name="gameTime"></param>
        public abstract void Update(GameTime gameTime);

        /// <summary>
        /// 
        /// </summary>
        /// <param name="spriteBatch"></param>
        public abstract void Draw(GameTime gameTime, SpriteBatch spriteBatch);
    }
}
